//
//  KeyContentCell.m
//  Utils
//
//  Created by enghou on 2018/5/1.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "KeyContentCell.h"

@implementation KeyContentCell

-(NSDictionary *)param{
    if (self.key) {
        for (UITextField *field in self.contentView.subviews) {
            if ([field isKindOfClass:[UITextField class]]) {
                if ([field.text length] > 0) {
                    return @{self.key:field.text};
                }
            }
        }
    }
    return @{};
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
